let host = 'http://localhost:8097/'

// 文件服务器地址
let arguments = process.argv.splice(2);
var isDevEnvironment = true;
var wechatConfig = {
  appid: 'wxdbf241942fa17c01',
  secret: 'd16487dd4c4e17e4b79481c6a33a3a52',
  baseUrl: 'https://ywt.mynatapp.cc',
  proxyBaseUrl:"https://t-wechat3.sf8cloud.com/wechatproxy/",
  proxyUrl : "https://t-wechat3.sf8cloud.com/wechatproxy/code"
}

for (let arg of arguments) {
  if (arg == '--prod') {
    console.log('采用生产模式配置')
    host = 'http://10.30.248.221:8197/'
    isDevEnvironment=false;
    wechatConfig.baseUrl = "https://agent.sf8cloud.com";
  } else if (arg == '--test') {
    host = 'http://localhost:8097/';
    isDevEnvironment=false;
    wechatConfig.baseUrl = "https://t-agent.sf8cloud.com";
  }
}
var wechat4Dev = {
  'openid':'ohmfiwxxVAIF35qUJcJYGbdU-gCs',
  'headimgurl':'https://wx.qlogo.cn/mmopen/vi_32/DYAIOgq83ep17oYhmvdCFAkwtmhQ5zndRg5RJmf4DLXBslALLtupJtMIqEicPWibTPRQfhMwjtw5czib8v0nHpWPQ/132',
  'nickname':'dou132',
}


module.exports = {
  host,
  wechatConfig,
  isDevEnvironment,
  wechat4Dev
}
